package edu.biwu.service.impl;


import edu.biwu.dao.UserDao;
import edu.biwu.service.UserService;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;

/**
 * @author 王俊彪
 * @version 1.0
 */
@Service
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public class UserServiceImpl05 implements UserService {

    public UserServiceImpl05() {
        System.out.println(this+"构造方法被调用");
    }
    @PostConstruct
    public void init(){
        System.out.println(this+" 初始化 ");
    }
    @PreDestroy
    public void destroy(){
        System.out.println(this+" 被销毁 ");
    }
}
